package com.firebird.fejpsl.repository.app;

import com.firebird.fejpsl.domain.app.Banner;
import com.firebird.fejpsl.repository.BaseMapper;
import com.firebird.fejpsl.viewmodel.app.banner.BannerPageRequestVM;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BannerMapper extends BaseMapper<Banner> {
    int deleteByPrimaryKey(Integer id);

    int insert(Banner record);

    int insertSelective(Banner record);

    Banner selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Banner record);

    int updateByPrimaryKey(Banner record);

    List<Banner> getBannerByType(Integer type);

    List<Banner> allBanner();

    List<Banner> page(BannerPageRequestVM requestVM);
}
